﻿* Encoding: UTF-8.

DATASET ACTIVATE DataSet1.
USE ALL.


*check for compliance rates per IV condition (Source of Robot Advice = robot-only)

USE ALL.
COMPUTE filter_$=(SourceOfRobotAdvice = 0).
VARIABLE LABELS filter_$ 'SourceOfRobotAdvice = 0 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.


CROSSTABS
  /TABLES=Compliance BY week
  /FORMAT=AVALUE TABLES
  /STATISTICS=CHISQ PHI 
  /CELLS=COUNT ROW COLUMN TOTAL 
  /COUNT ROUND CELL.





*check for compliance rates per IV condition (Source of Robot Advice = course lecturer)

USE ALL.
COMPUTE filter_$=(SourceOfRobotAdvice = 1).
VARIABLE LABELS filter_$ 'SourceOfRobotAdvice = 1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

CROSSTABS
  /TABLES=Compliance BY week
  /FORMAT=AVALUE TABLES
  /STATISTICS=CHISQ PHI 
  /CELLS=COUNT ROW COLUMN TOTAL 
  /COUNT ROUND CELL.


FILTER OFF.
USE ALL.
EXECUTE.


*create dummy variables for the Week 1-4

SPSSINC CREATE DUMMIES VARIABLE=week 
ROOTNAME1=Week 
/OPTIONS ORDER=A USEVALUELABELS=YES USEML=YES OMITFIRST=NO.



*create dummy variables for the IV (source of robot advice)

SPSSINC CREATE DUMMIES VARIABLE=SourceOfRobotAdvice 
ROOTNAME1=NoTreatment 
/OPTIONS ORDER=A USEVALUELABELS=YES USEML=YES OMITFIRST=NO.


*create dummy variables for the interaction between week and IV

SPSSINC CREATE DUMMIES VARIABLE=week NoTreatment_1 
ROOTNAME2=Int 
/OPTIONS ORDER=A USEVALUELABELS=YES USEML=YES OMITFIRST=NO.


*renaming dummy variables for the interaction

RENAME VARIABLES(Int_1_1 = NoTreat_Week1) (Int_1_2 = Treat_Week2) (Int_1_3 = NoTreat_Week2) (Int_1_4 = Treat_Week3) (Int_1_5 = NoTreat_Week3) (Int_1_6 = Treat_Week4) (Int_1_7 = NoTreat_Week4)
    


